package _caolihua;

public class URLFormatImpl {
	
	public  String getDetailFormat(String url){
		//先看是否满足这个最长的
		 if(url.contains("https://")){
			 url = url.substring(8, url.indexOf("/", 8));
		}else if(url.contains("http://")){
			 url = url.substring(7, url.indexOf("/", 7));
		}
		return url;
		
	}
	
	
}
